home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
gnulib
/
symm.md
/
_builtin_New.s
< prev
next >
Wrap
Text File
|
1990-08-10
|
2KB
|
145 lines
.file "_builtin_New.s"
.data
.align 2
.globl ___new_handler
___new_handler:
.long _default_new_handler
.text
.align 2
.globl ___builtin_vec_new
___builtin_vec_new:
jmp .L16
.L15:
movl 12(%ebp),%eax
incl %eax
movl %eax,-8(%ebp)
movl $0,%eax
cmpl %eax,8(%ebp)
jne .L17
movl -8(%ebp),%eax
imull 16(%ebp),%eax
pushl %eax
call ___builtin_new
popl %ecx
movl %eax,8(%ebp)
.L17:
movl 8(%ebp),%eax
movl %eax,-12(%ebp)
movl $0,-4(%ebp)
jmp .L21
.L22:
pushl 8(%ebp)
call *20(%ebp)
popl %ecx
movl 16(%ebp),%eax
addl %eax,8(%ebp)
incl -4(%ebp)
.L21:
movl -8(%ebp),%eax
cmpl %eax,-4(%ebp)
jl .L22
.L20:
movl -12(%ebp),%eax
jmp .L14
/REGAL 0 NOFPA NODBL
/REGAL 63 NOFPA AUTO -4(%ebp) 4
/REGAL 57 NOFPA PARAM 8(%ebp) 4
/REGAL 33 NOFPA AUTO -8(%ebp) 4
/REGAL 21 NOFPA PARAM 20(%ebp) 4
/REGAL 21 NOFPA PARAM 16(%ebp) 4
/REGAL 6 NOFPA AUTO -12(%ebp) 4
.L14:
leave
ret
/USES %eax
.L16:
pushl %ebp
movl %esp,%ebp
subl $12,%esp
jmp .L15
/DEF ___builtin_vec_new;
.data
.text
.align 2
.globl ___set_new_handler
___set_new_handler:
jmp .L26
.L25:
movl ___new_handler,%eax
movl %eax,-4(%ebp)
movl $0,%eax
cmpl %eax,8(%ebp)
jne .L27
movl $_default_new_handler,8(%ebp)
.L27:
movl 8(%ebp),%eax
movl %eax,___new_handler
movl -4(%ebp),%eax
jmp .L24
/REGAL 0 NOFPA NODBL
/REGAL 6 NOFPA AUTO -4(%ebp) 4
.L24:
leave
ret
/USES %eax
.L26:
pushl %ebp
movl %esp,%ebp
subl $4,%esp
jmp .L25
/DEF ___set_new_handler;
.data
.text
.align 2
.globl _set_new_handler
_set_new_handler:
jmp .L31
.L30:
pushl 8(%ebp)
call ___set_new_handler
popl %ecx
jmp .L29
/REGAL 0 NOFPA NODBL
.L29:
leave
ret
/USES %eax
.L31:
pushl %ebp
movl %esp,%ebp
jmp .L30
/DEF _set_new_handler;
.data
.text
.align 2
_default_new_handler:
jmp .L34
.L33:
pushl $65
pushl $.L36
pushl $2
call _write
addl $12,%esp
pushl $-1
call __exit
popl %ecx
/REGAL 0 NOFPA NODBL
.L32:
leave
ret
.L34:
pushl %ebp
movl %esp,%ebp
jmp .L33
/DEF _default_new_handler;
.data
.L36:
.byte 0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x5f,0x6e,0x65
.byte 0x77,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x3a
.byte 0x20,0x6f,0x75,0x74,0x20,0x6f,0x66,0x20,0x6d,0x65
.byte 0x6d,0x6f,0x72,0x79,0x2e,0x2e,0x2e,0x20,0x61,0x61
.byte 0x61,0x69,0x69,0x69,0x69,0x69,0x69,0x65,0x65,0x65
.byte 0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65
.byte 0x65,0x21,0x0a,0x00